package edu.zut.cs.software.estateagent.contract.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.cs.software.base.service.impl.GenericManagerImpl;
import edu.zut.cs.software.estateagent.contract.dao.ContractDao;
import edu.zut.cs.software.estateagent.contract.domain.Contract;
import edu.zut.cs.software.estateagent.contract.service.ContractManager;

@Component
@Transactional
public class ContractManagerImpl extends GenericManagerImpl<Contract, Long> implements ContractManager {

	ContractDao contractDao;

	@Override
	public Contract findbyUsername(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Autowired
	public void setContractDao(ContractDao contractDao) {
		this.contractDao = contractDao;
		this.dao = this.contractDao;
	}

}
